<!DOCTYPE html>
         <html>
		<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<title>商品详情</title>
		<!-- Set render engine for 360 browser -->
		<meta name="renderer" content="webkit">
		<!-- No Baidu Siteapp-->
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<!-- Add to homescreen for Chrome on Android -->
		<meta name="mobile-web-app-capable" content="yes">
		<!-- Add to homescreen for Safari on iOS -->
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="__PUBLIC__/assets/css/amazeui.css">
		<link rel="stylesheet" href="__PUBLIC__/assets/css/app.css">
		<!--[if lt IE 9]>
		<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
		<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
		<script src="__PUBLIC__/assets/js/amazeui.ie8polyfill.min.js"></script>
		<![endif]-->
		<script type="text/javascript" src="__PUBLIC__/assets/js/jquery-1.9.1.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/assets/js/jquery.validate.js"></script>
		<script type="text/javascript" src="__PUBLIC__/assets/js/validate-ex.js"></script>
		<script src="__PUBLIC__/assets/js/amazeui.js"></script>
        <script type="text/javascript" src="__PUBLIC__/assets/js/payfor.js"></script>
		<script type="text/javascript" src="__PUBLIC__/assets/js/app.js"></script>
		<script type="text/javascript" src="__PUBLIC__/assets/js/jump.js"></script>
        <script type="text/javascript" src="__PUBLIC__/assets/js/jquery.jqzoom.js"></script>
        <script type="text/javascript" src="__PUBLIC__/assets/js/base.js"></script>     
		<!--鼠标经过导航跳动开始-->
		<!--<script type="text/javascript">
			$(function(){
				 $(".am-topbar-nav li").each(function(k,a){
					new JumpObj(a,5);//晃动幅度
					$(a).hover(function(){this.parentNode.parentNode.addClass("hover")});
				});
		 	}); 
		
		</script>-->
		<!--鼠标经过导航跳动结束-->
		<script type="text/javascript">
			function addr_on(obj){
				$(obj).css("border","2px solid #ffab49");
				$(obj).children(".addr_btn").show();
			}
			function addr_off(obj){
				$(obj).css("border","2px solid #d7d6d6");
				$(obj).children(".addr_btn").hide();
			}
		</script>
		<style type="text/css">
.am-form select, .am-form textarea, .am-form input[type="text"], .am-form input[type="password"], .am-form input[type="datetime"], .am-form input[type="datetime-local"], .am-form input[type="date"], .am-form input[type="month"], .am-form input[type="time"], .am-form input[type="week"], .am-form input[type="number"], .am-form input[type="email"], .am-form input[type="url"], .am-form input[type="search"], .am-form input[type="tel"], .am-form input[type="color"], .am-form-field {
	background-color: #ffffff;
	background-image: none;
	border: 1px solid #cdcdcd;
	border-radius: 0;
	color: #555555;
	display: block;
	font-size: 0.98em;
	line-height: 1.5;
	padding: 0.5em;
	transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
	vertical-align: middle;
	width: 100%;
}
.addr_form label {
	color: #53555c;
	font-weight: normal;
	padding-top: 0 !important;
	text-align: left !important;
}
.login_bg {
	background: rgba(0,0,0,0);
	padding: 2em;
}
.am-form select {
	max-width: 100%;
}
.order_list_ul img {
	vertical-align: middle;
	max-width: 135px;
	max-height: 156px;
}
.order_table_pc {
	line-height: 156px;
	padding: 0 25px;
}
body {
	background-color: #f2f2f2;
}
</style>
		<!--收货地址验证开始-->
		<script type="text/javascript">
			function addrsave(){
				var addr_name=$("#addr_name").val();
				var addr_phone=$("#addr_phone").val();
				var addr_province=$("#addr_province").val();
				var addr_city=$("#addr_city").val();
				var addr_area=$("#addr_area").val();
				var detail_addr=$("#detail_addr").val();
				var addr_code=$("#addr_code").val();
				
				if(addr_name==""){
					$("#addr_name").css("border","1px solid #ff0000");
					$("#addr_name").next().next("p").show();
					return false;
				}
				$("#addr_name").css("border","1px solid #cccccc");
				$("#addr_name").next().next("p").hide();
				if(addr_phone==""){
					$("#addr_phone").css("border","1px solid #ff0000");
					$("#addr_phone").next().next("p").show();
					return false;
				}
				$("#addr_name").css("border","1px solid #cccccc");
				$("#addr_phone").next().next("p").hide();
				
				var re=/^1([3]\d|4[57]|5[^3]|8\d)\d{8}$/;
			    if(!re.test(addr_phone)){
			    	$("#addr_phone").css("border","1px solid #ff0000");
				    $("#addr_phone").next().next("p").show();
					return false;
			    }
			    $("#addr_phone").css("border","1px solid #cccccc");
			    $("#addr_phone").next().next("p").hide();
			    
				if(addr_province==""){
					$("#addr_province").css("border","1px solid #ff0000");
					$("#detail_addr").next().next("p").show();
					return false;
				}
				$("#addr_province").css("border","1px solid #cccccc");
				$("#detail_addr").next().next("p").hide();
				if(addr_city==""){
					$("#addr_city").css("border","1px solid #ff0000");
					$("#detail_addr").next().next("p").show();
					return false;
				}
				$("#addr_city").css("border","1px solid #cccccc");
				if(addr_area==""){
					$("#addr_area").css("border","1px solid #ff0000");
					$("#detail_addr").next().next("p").show();
					return false;
				}
				$("#addr_area").css("border","1px solid #cccccc");
				$("#detail_addr").next().next("p").hide();
				if(detail_addr==""){
					$("#detail_addr").css("border","1px solid #ff0000");
					$("#detail_addr").next().next("p").show();
					return false;
				}
				$("#detail_addr").css("border","1px solid #cccccc");
				$("#detail_addr").next().next("p").hide();
				if(addr_code==""){
					$("#addr_code").css("border","1px solid #ff0000");
					$("#addr_code").next("p").show();
					return false;
				}
				$("#addr_code").css("border","1px solid #cccccc");
				$("#addr_code").next("p").hide();
				
				var pattern= /^[1-9]\d{5}$/;
			    if(!pattern.test(addr_code)){
			    	$("#addr_code").css("border","1px solid #ff0000");
				    $("#addr_code").next("p").show();
					return false;
			    }
			    $("#addr_code").css("border","1px solid #cccccc");
			    $("#addr_code").next("p").hide();
				
				return true;
			}
			
			$(document).ready(function(e) {
                $("#add_price").click(function(e) {
                    setAmount.add('#qty_item_1');
					var now_price = parseFloat($("#danjia").val());	
					$("#now_price").html(now_price*parseFloat($("#qty_item_1").val()));
                });
			    $("#jian_price").click(function(e) {
						 var m=parseFloat($("#qty_item_1").val())-1;
						 if(m<=0)
						 {
							 alert("商品数量最少1件");
							 return;
							 }
            $('#qty_item_1').val(m);
            var now_price = parseFloat($("#danjia").val());	
            $("#now_price").html(now_price*parseFloat($("#qty_item_1").val()));

});
});

			$(document).ready(function(e) {         
			$("#bug_btn").click(function(e) {
					$.post("__APP__/index/buynow",{goods_id:('id'),price:$('#now_price').html()},function(result){
					  alert(result);
					  window.location = "__APP__/index/buynow?order_id="+result;
				      });
				 });
           });
		</script>
		<!--收货地址验证结束-->
		</head>
		<body>
<!--数量增减开始-->
<style type="text/css">
*{margin:0;padding:0;}
a,img{border:0;text-decoration:none;}
body{font:12px/180% Arial, Helvetica, sans-serif, "新宋体";}
/* p_number */
.p_number{border:solid 1px #ddd;padding:10px 0 0 10px;width:480px;height:80px;margin:40px auto;}
.p_number .f_l{float:left;}
.p_number .add_chose{width:105px;}
.p_number .add_chose a{float:left;margin:5px 0 0 0;display:block;width:15px;height:15px;line-height:99em;overflow:hidden;background:url(__PUBLIC__/images/reduce-add.gif) no-repeat;}
.p_number .add_chose a.reduce{background-position:0 0;}
.p_number .add_chose a.reduce:hover{background-position:0 -16px;}
.p_number .add_chose a.add{background-position:-16px 0;}
.p_number .add_chose a.add:hover{background-position: -16px;}
.p_number .add_chose .text{float:left;margin:0 5px;display:inline;border:solid 1px #ccc;padding:4px 3px 4px 
8px;width:40px;line-height:18px;font-size:14px;color:#990000;font-weight:800;}
.p_number .buy{line-height:2em;}
.p_number .buy .total-font{font-family:Arial;font-size:26px;}
.p_number .buy .jifen{margin-left:20px;color:#ACACAC;}
.p_number .buy .jifen b{margin:0 3px;}
</style>
<!--数量增减结束-->
		<body>
<!--头部开始--> 
<!--#include file="head.html"-->
<!--内容开始--> 
<div class="container2 container">
          <div class="am-container buynow_div">
    <div class="show_box">
              <div class="show_left">
        <div class="right-extra"> 
                  <!--产品参数开始-->
                  <div>
            <div id="preview" class="spec-preview"> <span class="jqzoom">
            <img jqimg="__PUBLIC__/images/b3.jpg" src="<?php echo $goods_info['goods_pic'];?>" /></span> </div>
            <!--缩图开始-->
            <div class="spec-scroll"> <a class="prev">&lt;</a> <a class="next">&gt;&gt;</a>
                      <div class="items">
                <ul>
                          <li><img alt="主图"  bimg="__PUBLIC__/images/b3.jpg" src="<?php echo $goods_info['goods_pic'];?>" onmousemove="preview(this);"></li>
                          <li><img alt="附图1" bimg="__PUBLIC__/images/b3.jpg" src="__PUBLIC__/images/s3.jpg" onmousemove="preview(this);"></li>
                          <li><img alt="附图2" bimg="__PUBLIC__/images/b1.jpg" src="<?php echo $goods_info['goods_pic'];?>" onmousemove="preview(this);"></li>
                          <li><img alt="附图3" bimg="__PUBLIC__/images/b1.jpg" src="__PUBLIC__/images/s1.jpg" onmousemove="preview(this);"></li>
                          <li><img alt="附图4" bimg="__PUBLIC__/images/b3.jpg" src="__PUBLIC__/images/s3.jpg" onmousemove="preview(this);"></li>
                          <li><img alt="附图5" bimg="__PUBLIC__/images/b1.jpg" src="__PUBLIC__/images/s1.jpg" onmousemove="preview(this);"></li>
                          <li><img alt="附图6" bimg="__PUBLIC__/images/b2.jpg" src="__PUBLIC__/images/s2.jpg" onmousemove="preview(this);"></li>
                          <li><img alt="附图7" bimg="__PUBLIC__/images/b1.jpg" src="__PUBLIC__/images/s1.jpg" onmousemove="preview(this);"></li>
                          <li><img alt="附图8" bimg="__PUBLIC__/images/b2.jpg" src="__PUBLIC__/images/s2.jpg" onmousemove="preview(this);"></li>
                        </ul>
              </div>
                    </div>
            <!--缩图结束--> 
          </div>
                </div>
      </div>
              <div class="show_right">
        <h2><?php echo $goods_info['goods_name'];?></h2>
        <h3><?php echo $goods_info['description'];?></h3>
        <div class="show_color"><span>颜  色 ：<?php echo $goods_?></span><a href="javascript:;"  style="background-color:#FFEC8B"></a>
        <a href="javascript:;"  style="background-color:#FFEDFF"></a>
        <a href="javascript:;"  style="background-color:#DEEEBC"></a></div>
        <div class="show_q"><span>数  量 ：</span>  	
		<div class="f_l add_chose">
			<a class="reduce" href="javascript:void(0)" id="jian_price">-</a>
			<input type="text" name="qty_item_1" value="1" id="qty_item_1" onKeyUp="setAmount.modify('#qty_item_1')" class="text" />
			<a class="add" id="add_price" href="javascript:void(0)">+</a>
		</div>
   </div>
        <div class="show_price"><span>价  格 ：<input type="hidden" id="danjia" value="<?php echo $goods_info['out_price'];?>"></span>￥<b id="now_price"><?php echo $goods_info['out_price'];?></b></div>
        <div class="show_car">
                  <input type="button" class="am-btn btn_yellow_long" value="添加至购物车">          
                  <input type="hidden" id="goods_id" value="<?php echo $goods_info['id']; ?>">
                  <input type="button" class="am-btn btn_yellow_long" value="立即购买" style="margin-right:3px;" id="bug_btn">
                </div>
      </div>
            </div>
            <div class="show_box1">
            <div class="show_title"><a href="#menu" style="color:#ffab49; float:right;">详细了解产品介绍 &gt;&gt;</a>产品技术规格</div>         
           <div id="menu"> 
            <ul class="show_list" id="content">
        <!-- var_dump($a);-->   
            <li><span>产品型号</span><b><?php echo $goods_info['model_size'];?></b></li>
            <li><span>产品类型</span><b><?php echo $goods_info['product_type'];?></b></li>
            <li><span>外观尺寸&材质</span>
            <img src="<?php echo $goods_info['goods_material'];?>"/></li>
            <li><span>扫描最大幅度</span><b><?php echo $goods_info['max_extent'];?></b></li>
            <li><span>工作环境</span><b><?php echo $goods_info['environment'];?></b></li>
            <li><span>对焦方式</span><b><?php echo $goods_info['format'];?></b></li>
            <li><span>扫描光源</span><b><?php echo $goods_info['light'];?></b></li>
            <li><span>操作速度</span><b><?php echo $goods_info['operation_speed'];?></b></li>
            <li><span>生成格式</span><b><?php echo $goods_info['format'];?></b></li>
             <li><span>光源分辨率</span><b><?php echo $goods_info['dpi'];?></b></li>
            <li><span>设备配件</span><b><?php echo $goods_info['parts'];?></b></li>
            <li class="last"><span>售后服务</span><b><?php echo $goods_info['afterservice'];?></b></li>
           
            </ul>
            </div>  </div>
  </div>
        </div>
<!--内容结束-->
<!--底部导航开始-->
		<!--#include file="foot.html"-->
		<!--底部导航结束-->
</body>
</html>